import Layout from "@/views/layout.vue";

export default {
  path: "/",
  component: Layout,
  redirect: "/home",
  children: [
    //任务
    {
      path: "/task",
      name: "task",
      meta: {
        title: "任务",
        index: 1,
      },
      component: () => import("../views/task/index.vue"),
    },
    {
      path: "/task/detail",
      name: "task/detail",
      meta: {
        title: "任务",
        index: 2,
      },
      component: () => import("../views/task/page/test.vue"),
    },
    //首页
    {
      path: "/home",
      name: "home",
      meta: {
        title: "首页",
        index: 1,
      },
      component: () => import("../views/Home.vue"),
    },
    //我的
    {
      path: "/me",
      name: "me",
      meta: {
        title: "我的",
        index: 1,
      },
      component: () => import("../views/me/index.vue"),
    },
    {
      path: "/me/detail",
      name: "me/detail",
      meta: {
        title: "我的",
        index: 2,
      },
      component: () => import("../views/me/page/test.vue"),
    },
  ],
};
